package com.dotflat.check.domain;


import com.dotflat.rest.domain.AreableObjectBase;
import com.dotflat.util.UuidUtil;
import com.dotflat.util.excelUtil.Excel;
import lombok.EqualsAndHashCode;

import javax.persistence.*;

/**
 * 考勤机登录对象
 */
@Entity
@Table(name = "c_checker")
@lombok.Data
@EqualsAndHashCode(callSuper = true)
public class Checker extends AreableObjectBase
{
    //覆盖前端需要
    private String areaId;

    @Column(columnDefinition = "int(6)   COMMENT '考勤机ID' ")
    private Integer checkerId;

    @Column(columnDefinition = "varchar(32)   COMMENT '登录密码' ")
    private Integer loginPass = UuidUtil.getOrderNo();

    @Column(columnDefinition = "varchar(255)   COMMENT '设备序列号' ")
    private String serialNO;

    @Column(columnDefinition = "varchar(255)   COMMENT '地域' ")
    private String address;

    @Column(columnDefinition = "varchar(255)   COMMENT '备注' ")
    private String remark;

    @Column(columnDefinition = "varchar(255)   COMMENT '生产厂商' ")
    private String manufacturer;

    @Column(columnDefinition = "varchar(255)   COMMENT '厂家识别码' ")
    private String devSno;

    @Column(columnDefinition = "varchar(255)   COMMENT '操作特性' ")
    private String features;

    @Column(columnDefinition = " int default 0  COMMENT '通道类型  0：自动， 1：入口  2：出口,3:进出口都有'")
    private Integer direction;
}
